package com.xframe.domain.knowledgeBase;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.AutoFill;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XTable;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@Accessors(chain=true)
@XTable(value = "equipment_tree", label = "设备表")
public class EquipmentTree extends BaseModel {
    /**
     * 主键ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "id",primaryKeyFlag = true,uniqueFlag = true,desc = "设备ID")
    private Long id;

    @XColumn(name = "type",desc = "类型")
    private Integer type;

    @XColumn(name = "position_x",desc = "经纬度X")
    private BigDecimal positionX;

    @XColumn(name = "position_y",desc = "经纬度Y")
    private BigDecimal positionY;
}
